package ru.usu.gv.gui;

import javax.swing.JMenu;
import javax.swing.JMenuBar;

/**
 @author Sergey Pupyrev 
 07.01.2007
 */

public class GVMenuBar extends JMenuBar
{
    private JMenu fileMenu;
    private JMenu editMenu;
    private JMenu viewMenu;
    private JMenu layoutMenu;
    private JMenu toolsMenu;
    private JMenu stylesMenu;
    private JMenu helpMenu;

    public GVMenuBar(GVActions actions)
    {
        fileMenu = actions.getFileMenu(this);
        editMenu = actions.getEditMenu();
        viewMenu = actions.getViewMenu();
        layoutMenu = actions.getLayoutMenu();
        toolsMenu = actions.getToolsMenu();
        stylesMenu = actions.getStylesMenu();
        helpMenu = actions.getHelpMenu();

        add(fileMenu);
        add(editMenu);
        add(viewMenu);
        add(layoutMenu);
        add(toolsMenu);
        add(stylesMenu);
        add(helpMenu);
    }
}
